package td.pt;

import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.PopupViewImpl;

public class ChoiceDialogView extends PopupViewImpl implements
		ChoiceDialogPresenter.MyView {

	private final Widget widget;

	public interface Binder extends UiBinder<Widget, ChoiceDialogView> {
	}

	@UiField
	Label messageAboutChoice;

	@UiField
	Button actionYes;

	@UiField
	Button actionNo;

	@Inject
	public ChoiceDialogView(final EventBus eventBus, final Binder binder) {
		super(eventBus);
		widget = binder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}

	public Label getMessageAboutChoice() {
		return messageAboutChoice;
	}

	public Button getActionYes() {
		return actionYes;
	}

	public Button getActionNo() {
		return actionNo;
	}

}
